<%--
 - Copyright (c) 2009-2011 ETCORE Labs. All rights reserved. 
 - 
 - This software is the confidential and proprietary information of ETCORE Labs. 
 - You shall not disclose such confidential information and shall use it only
 - in accordance with the terms of the license agreement you entered into
 - with ETCORE Labs.
 -
 - Support can be obtained from support forums at:
 - http://www.etcore.com/
 -
 - @author: ETCORE GroupTalk developers
 -
 --%>
<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/taglibs/core" prefix="c"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="/group/css/styles.css" type="text/css">
<script>
function  showAdminmenu(){
	var adminmenuFrame=document.getElementById("adminmenu"); 
	adminmenuFrame.style.display =  "" ;  
 
	
}
function  hideAdminmenu(){
	var adminmenuFrame=document.getElementById("adminmenu"); 
	adminmenuFrame.style.display =  "none" ;  
 
	
}
function checkForm1()
{
if(form1.name.value==""||form1.name.value.replace(/(^\s*)|(\s*$)/g, "")=="")
{
alert("<c:out value='${context.msg_name_null}' />");
form1.name.focus();
return false;
}
return true;
}
function showAddDirectory(){

	 
	var element=document.getElementById("addDirectory");
	element.style.display=""; 

	var leftOffset=(document.body.clientWidth-350)/2;
	element.style.left=leftOffset; 
	var topOffset=(document.body.clientHeight-160)/2;
	element.style.top=topOffset; 
		
	var winback=document.getElementById("winback"); 
	winback.style.display =  "" ; 
 
 

}
function hideAddDirectory(){
	var element=document.getElementById("addDirectory");
	element.style.display="none";
	var winback=document.getElementById("winback"); 
	winback.style.display =  "none" ; 

 
}
</script>
</head>
<body>
<div>


<table cellspacing=0 cellpadding=2 width=120
	style="border: 2px solid #d2d4d2">


	<tr
		<c:if test="${empty param.open&&empty param.addGroup&&empty param.settings&&empty param.userShow&&empty param.replyTemplates}"> bgcolor="black"</c:if>>
		<td nowrap colspan=2 style="border-bottom: 1px solid #d2d4d2"><input
			type=button
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			onclick='window.location.href="/group/groupadmin${context.postfix}";'
			value='${context.architecture}'></td>
	</tr>
	<tr <c:if test="${param.open==1&&param.nav==0}"> bgcolor="black"</c:if>>
		<td nowrap align=left style="border-bottom: 1px solid #d2d4d2"><input
			<c:if test="${!context.p1}">
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #808080; "
			</c:if>
			<c:if test="${context.p1}">
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			</c:if>
			type=button
			onclick='window.location.href="/group/groupadmin${context.postfix}?open=1&nav=0";'
			value='${context.platform1}'></td>
	</tr>
	<tr <c:if test="${param.open==2&&param.nav==0}"> bgcolor="black" </c:if>>
		<td nowrap align=left colspan=2
			style="border-bottom: 1px solid #d2d4d2"><input type=button
			<c:if test="${!context.p2}">
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #808080; "
			</c:if>
			<c:if test="${context.p2}">
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			</c:if>
			onclick='window.location.href="/group/groupadmin${context.postfix}?open=2&nav=0";'
			value='${context.platform2}'></td>
	</tr>
	<tr <c:if  test="${param.open==3}">bgcolor="black"</c:if>>
		<td nowrap align=left style="border-bottom: 1px solid #d2d4d2"
			colspan=2><input type=button
			<c:if test="${!context.p3}">
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #808080; "
			</c:if>
			<c:if test="${context.p3}">
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			</c:if>
			onclick='window.location.href="/group/groupadmin${context.postfix}?open=3";'
			value='${context.platform3}'></td>
	</tr>
	<tr <c:if test="${param.open==4}">bgcolor="black"</c:if>>
		<td nowrap align=left style="border-bottom: 1px solid #d2d4d2"><input
			type=button
			<c:if test="${!context.p4}">
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #808080;"
			</c:if>
			<c:if test="${context.p4}">
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			</c:if>
			onclick='window.location.href="/group/groupadmin${context.postfix}?open=4";'
			value='${context.platform4}'></td>
	</tr>
	<tr <c:if test="${param.open==1&&param.nav==1}">bgcolor="black"</c:if>>
		<td nowrap align=left style="border-bottom: 1px solid #d2d4d2"><input
			type=button
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			onclick='window.location.href="/group/groupadmin${context.postfix}?open=1&nav=1 ";'
			value='${context.nav1}'></td>
	</tr>
	<tr <c:if test="${param.open==2&&param.nav==1}">bgcolor="black"</c:if>>
		<td nowrap align=left style="border-bottom: 1px solid #d2d4d2"><input
			type=button
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			onclick='window.location.href="/group/groupadmin${context.postfix}?open=2&nav=1";'
			value='${context.nav2}'></td>
	</tr>
	<tr <c:if test="${param.open==0}"> bgcolor="black"</c:if>>
		<td nowrap align=left style="border-bottom: 1px solid #d2d4d2"><input
			type=button
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			onclick='window.location.href="/group/groupadmin${context.postfix}?open=0";'
			value='${context.platform0}'></td>
	</tr>
	<tr <c:if test="${not empty param.userShow}"> bgcolor="black"</c:if>>
		<td colspan=2 style="border-bottom: 1px solid #d2d4d2"><input
			type=button
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			onclick='window.location.href="/group/userShow${context.postfix}";'
			value='${context.user_management}'></td>

	</tr>



	<c:if test="${not empty param.open }">
		<tr>
			<td colspan=2 style="border-bottom: 1px solid #d2d4d2"><input
				type=button onclick="showAddDirectory()"
				style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
				value='${context.add_block}'>
			<div id="addDirectory"
				style="display: none; valign: center; position: absolute; top: 15%; left: 20%; width: 350px; padding: 0px; border: 1px solid orange; background-color: white; z-index: 1002; overflow: hidden;">
			<FORM name="form1" onSubmit="return checkForm1();" method=post
				action="/group/groupadmin<c:out value='${context.postfix }' />"><input
				type=hidden name=cmd value="addDirectory"> <input
				type=hidden name=open value="<c:out value='${param.open}' />">
			<input type=hidden name=nav value="<c:out value='${param.nav}' />">
			<table align=center bgcolor="#B7B7B7" cellpadding="0" cellspacing="0"
				border="0" width="350">

				<tr bgcolor="orange">
					<td nowrap><img src="/group/images/winlogo.gif" border=0>&nbsp;<b><c:out
						value='${context.add_block }' /></b></td>
					<td align=right><img src="/group/images/close.gif" class=close
						onClick="hideAddDirectory()" border=0 /></td>
				</tr>
				<tr bgcolor=#F3F3F3>
					<td colspan=2 align="center" nowrap><font size="2"
						face="verdana"><b><c:out value='${context.add_block}' /></b></font></td>
				</tr>
				<tr bgcolor="#ffffff">
					<td align="center" nowrap width=80><c:out
						value='${context.text_name}' /></TD>
					<TD align=left><input type=text name="name" size=25
						maxlength=120></TD>
				</TR>




				<tr bgcolor="#ffffff" style="height: 30;">
					<td align="center"><c:out value='${context.en}' /></TD>
					<TD align=left>Yes<input type=radio name="en" value=1 checked>
					&nbsp; No<input type=radio name="en" value=0></TD>
				</TR>

				<tr bgcolor="#ffffff" style="height: 30;">
					<td align="center"><c:out value='${context.local}' /></TD>
					<TD align=left>Yes<input type=radio name="local" value=1
						checked> &nbsp; No<input type=radio name="ch" value=0></TD>
				</TR>

				<tr bgcolor=#F3F3F3>
					<td align="center" colspan=2><input type=submit
						value="<c:out value='${context.button_ok}' />">&nbsp;&nbsp;<input
						type=button onclick="hideAddDirectory()"
						value="<c:out value='${context.button_cancel}' />"></td>
				</tr>

			</table>

			</FORM>
			</div>
			</td>
		</tr>

	</c:if>

	<tr <c:if test="${not empty param.addGroup}"> bgcolor="black"</c:if>>
		<td colspan=2 style="border-bottom: 1px solid #d2d4d2"><input
			type=button
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			onclick='window.location.href="/group/addGroup${context.postfix}";'
			value="${context.add_group}"></td>
	</tr>
	<tr
		<c:if test="${not empty param.replyTemplates}"> bgcolor="black"</c:if>>
		<td colspan=2 style="border-bottom: 1px solid #d2d4d2"><input
			type=button
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			onclick='window.location.href="/group/replyTemplates${context.postfix}";'
			value="${context.public_reply_templates}"></td>
	</tr>

<tr <c:if test="${not empty param.settings}"> bgcolor="black"</c:if>>
		<td colspan=2 style="border-bottom: 1px solid #d2d4d2"><input
			type=button
			style="border: 0px; cursor: pointer; height: 20px; width: 120px; font-size: 12px; color: #4c4c4c;"
			onclick='window.location.href="/group/settings${context.postfix}";'
			value="${context.settings}"></td>
	</tr>

</table>

</div>



</BODY>
</HTML>
